package com.yc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "psychology.daily-analysis")
public class DailyAnalysisProperties {
    
    /**
     * 是否启用定时任务
     */
    private boolean enabled = true;
    
    /**
     * 定时任务执行时间（cron表达式）
     */
    private String cron = "0 0 1 * * ?";
    
    /**
     * 分析数据保存天数
     */
    private int dataRetentionDays = 90;
    
    /**
     * API调用间隔（毫秒）
     */
    private long apiCallInterval = 1000;
    
    public boolean isEnabled() {
        return enabled;
    }
    
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
    
    public String getCron() {
        return cron;
    }
    
    public void setCron(String cron) {
        this.cron = cron;
    }
    
    public int getDataRetentionDays() {
        return dataRetentionDays;
    }
    
    public void setDataRetentionDays(int dataRetentionDays) {
        this.dataRetentionDays = dataRetentionDays;
    }
    
    public long getApiCallInterval() {
        return apiCallInterval;
    }
    
    public void setApiCallInterval(long apiCallInterval) {
        this.apiCallInterval = apiCallInterval;
    }
} 